<!--
- @founder   IT柏拉图, https: //weibo.com/itprato
- @author    DedeCMS团队
- @copyright Copyright (c) 2007 - 2021, 上海卓卓网络科技有限公司 (DesDev, Inc.)
--->

<html>
<head>
<meta charset="{dede:global.cfg_soft_lang/}" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>模块打包</title>
<meta name="copyright" content="2007-2021 DedeCMS, 上海卓卓网络科技有限公司 (DesDev, Inc.)" />
<link rel="icon" href="/favicon.ico" />
<!-- CSS FILES -->
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/pkg/uikit/css/uikit.min.css" />
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/css/manage.dede.css">
<style type="text/css">
.uk-table td{
padding: 6px 12px;
vertical-align: top;
height: 35px;
}
</style>
</head>
<body>
<!-- 列表头部 -->
<div id="Table_Header_202X2W2X1X292F" class="uk-card uk-card-small uk-card-default" uk-sticky="bottom: #offset">
<div id="Header_1W2T2S2T1V252B" class="uk-card-header">
<div class="uk-grid uk-grid-small uk-text-small">
<span><ul class="uk-breadcrumb"><li><a href="module_main.php"><span>模块管理</span></a></li><li>模块打包</li></ul></span>
</div>
</div>
</div>
<!-- /列表头部 -->
<!-- 列表主体 -->
<div class="uk-card uk-card-small uk-card-default" style="top:-20px;margin-bottom: 50px;">
<div class="uk-card-body uk-overflow-auto" grid>
<div class="uk-child-width-1-1 uk-padding">
<table width="98%" border="0" cellpadding="1" cellspacing="1" class="uk-table">
<form action="module_make.php" method="post" enctype="multipart/form-data" name="form1">
<input type='hidden' name='action' value='make'>
<tr>
<td width="19%"><b>模块名称：</b></td>
<td width="81%">
<input name="modulname" type="text" id="modulname" class="uk-input uk-form-small uk-form-width-large"/>
</td>
</tr>
<tr>
<td><b>语言编码：</b></td>
<td>
<b>
<?php echo $cfg_soft_lang; ?>
</b>
<input name="lang" type="hidden" value='<?php echo $cfg_soft_lang; ?>' />
</td>
</tr>
<tr>
<td><b>封装类型：</b></td>
<td>
<input name="moduletype" type="radio" id="moduletype1" class='uk-radio' value='soft' checked='1' /> 模块 &nbsp; &nbsp;
<input name="moduletype" type="radio" id="moduletype2" class='uk-radio' value='templets' /> 模板 &nbsp; &nbsp;
<input name="moduletype" type="radio" id="moduletype3" class='uk-radio' value='plus' /> 小插件 &nbsp; &nbsp;
<input name="moduletype" type="radio" id="moduletype3" class='uk-radio' value='patch' /> 补丁
</td>
</tr>
<tr>
<td><b>联系Email：</b></td>
<td><input name="email" type="text" id="email" onchange="LoadHashCode()" class="uk-input uk-form-small uk-form-width-large"/> </td>
</tr>
<tr>
<td><b>模块识别码：</b></td>
<td>
<span id='modulcode'>由模块名称和Email生成</span> [<a href='javascript:LoadHashCode();'>更新</a>]
</td>
</tr>
<tr>
<td><b>开发团队：</b></td>
<td><input name="team" type="text" id="team" class="uk-input uk-form-small uk-form-width-large"/> </td>
</tr>
<tr>
<td><b>发布时间：</b></td>
<td>
<input name="mtime" type="text" id="mtime" class="uk-input uk-form-small uk-form-width-large" value="<?php echo GetDateMk(time()); ?>" />
</td>
</tr>
<tr>
<td><b>官方网址：</b></td>
<td><input name="url" type="text" id="url" class="uk-input uk-form-small uk-form-width-large" /> </td>
</tr>
<tr>
<td><b>是否涉及用户系统：</b></td>
<td>
<input name="ismember" type="radio" class='uk-radio' id="ismember0" value="0" checked="checked" /> 不涉及 &nbsp; &nbsp;
<input name="ismember" type="radio" id="ismember1" value="1" class='uk-radio' /> 涉及
<div id='rboxct' style='display:none'>
导航使用名称：
<input name="indexname" type="text" id="indexname" value="" />
<br />
导航使用网址：
<input name="indexurl" type="text" id="indexurl" value="" />
(用相对于用户中心的网址，如：../ask)
</div>
</td>
</tr>
<tr>
<td><b>后台管理菜单：</b></td>
<td>
<textarea name="menustring" rows="8" id="menustring" class="uk-textarea uk-form-small uk-form-width-large"></textarea>
<br />
(普通插件或模板、补丁类不要填写，模块菜单格式请参考inc/inc_menu_module.php)
</td>
</tr>
<tr>
<td><b>使用说明文件：</b></td>
<td>
<div class="uk-margin" id="upfile1">
<label class="uk-form-label"></label>
<div class="uk-form-controls">
<div class="uk-inline" uk-form-custom="target: true">
<span class="uk-form-icon" uk-icon="icon: upload"></span>
<input name="readme" type="file">
<input class="uk-input uk-form-small uk-form-width-large" type="text" placeholder="点击选择文件" >
</div>
</div>
</div>
</td>
</tr>
<tr>
<td><b>安装程序：</b></td>
<td>
<div class="uk-margin" id="upfile1">
<label class="uk-form-label"></label>
<div class="uk-form-controls">
<div class="uk-inline" uk-form-custom="target: true">
<span class="uk-form-icon" uk-icon="icon: upload"></span>
<input name="setup" type="file">
<input class="uk-input uk-form-small uk-form-width-large" type="text" placeholder="点击选择文件" >
</div>
</div>
</div>
</td>
</tr>
<tr>
<td><b>删除程序：</b></td>
<td>
<div class="uk-margin" id="upfile1">
<label class="uk-form-label"></label>
<div class="uk-form-controls">
<div class="uk-inline" uk-form-custom="target: true">
<span class="uk-form-icon" uk-icon="icon: upload"></span>
<input name="delsql" type="file">
<input class="uk-input uk-form-small uk-form-width-large" type="text" placeholder="点击选择文件" >
</div>
</div>
</div>
</td>
</tr>
<tr>
<td><b>文件列表：</b></td>
<td>
<p>
每行指定一个文件或目录，路径为相对于本目录，本目录的文件则直接用文件名即可，对于整个打包的目录，不需要指定子目录里的文件。<br />
如：如果已经指定了： ../book 则不需要再指定目录里的 ../book/index.php 等文件或目录，系统会自动索引整个目录，<br />
对于不需要索引整个目录的，请不要指定这个目录，否则可能会把不必要的文件也放进模块中。 <br />
<textarea name="filelist" rows="8" id="filelist" class="uk-textarea uk-form-small uk-form-width-large"></textarea>
</p>
</td>
</tr>
</table>
</div>
</div>
<div class="uk-card-footer " >
<div class="uk-padding-small" >
<button type="submit" class="uk-button uk-button-small uk-button-primary">提交</button>
</div>
</div>
</div>
</form>
<!-- 列表底部 -->
<div class="bar-bottom uk-flex uk-light uk-flex-right">
<div class="uk-button-group" style="margin-left: 50px;">
</div>
<div class="e1e02">Copyright &copy; 2007-2021 <a href='http://www.dedecms.com' target='_blank'><u>DedeCMS</u></a>, 上海卓卓网络科技有限公司 (DesDev, Inc.)</div>
</div>
<!-- 列表底部 -->
<!-- JS FILES -->
<script src="{dede:global.cfg_assets_dir/}/pkg/uikit/js/uikit.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/uikit/js/uikit-icons.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/jquery/jquery.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/js/dede.manage.min.js"></script>
<script language="javascript">
function LoadHashCode() {
var email = $("#email").val();
var modulname = $("#modulname").val();
$.get( "module_make.php?action=gethash&email="+email+"&modulname="+modulname, function( data ) {
$("#modulcode").html(data);
});
}
</script>
<!-- / JS FILES -->
</body>
</html>
